import request from '@/utils/http/index.js';

/**
 *
 * 获取验证码
 */
export const getCaptcha = () => {
  return request.get('/auth/captcha');
};

/** 登录 */
export const doLogin = data => {
  return request.post('/auth/login', data);
};

/** 登录 */
export const getUserInfo = () => {
  return request.get('/auth/info');
};

/** 退出 */
export const doLogout = () => {
  return request.post('/auth/logout');
};
